import request from '@/utils/request'

// 查询用户角色下的报表菜单
export function getAuthMenu(query) {
    return request({
      url: '/boc/common/getAuthMenu',
      method: 'get',
      params: query
    })
  }

// 根据用户查询复核人员
export function getCheckUsers(query) {
    return request({
      url: '/boc/common/getCheckUsers',
      method: 'get',
      params: query
    })
  }  

// 根据用户查询授权人员
export function getEmpowerUsers(query) {
    return request({
      url: '/boc/common/getEmpowerUsers',
      method: 'get',
      params: query
    })
  }  

// 根据菜单路径获取是否授权
export function findRptIsAuth(menuPath) {
  return request({
    url: '/boc/common/findRptIsAuth/'+menuPath,
    method: 'get'
  })
}    


// 验证用户下载密码
export function authValida(data) {
  return request({
    url: '/boc/common/authValida',
    method: 'post',
    data: data
  })
}    

// 获取资源上传文件信息
export function listFilesWithDates(query) {
  return request({
    url: '/boc/common/listFilesWithDates',
    method: 'get',
    params: query
  })
} 
